/*
 * TMap Designer - A Thematic Map design software
 * Copyright (C) 2006 World Health Organization
 * http://www.who.int
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package who.tmap.imp.dbase;

public interface DBaseHeader extends DBaseObject {

	 byte getEncryptionFlag();
	 void setEncryptionFlag(byte encryptionFlag);
	 
	 byte getFileCode();
	 void setFileCode(byte fileCode);
	 
	 int getFreeRecordThread();
	 void setFreeRecordThread(int freeRecordThread);
	
	 short getHeaderLength();
	 void setHeaderLength(short headerLength);
	
	 byte getIncompleteTransaction();
	 void setIncompleteTransaction(byte incompleteTransaction);
	
	 byte getLanguageDriver();
	 void setLanguageDriver(byte languageDriver);
	
	 byte getMdxFlag();
	 void setMdxFlag(byte mdxFlag);
	
	 double getMultiUser();
	 void setMultiUser(double multiUser);
	
	 int getNbRecords();
	 void setNbRecords(int nbRecords);
	
	 short getRecordLength();
	 void setRecordLength(short recordLength);
	
	 short getReserved1213();
	 void setReserved1213(short reserved1213);
	
	 short getReserved3031();
	 void setReserved3031(short reserved3031);

	 byte getDayOfLastUpdate();
	 void setDayOfLastUpdate(byte dayOfLastUpdate);

	 byte getMonthOfLastUpdate();
	 void setMonthOfLastUpdate(byte monthOfLastUpdate);

	/**
	 * Add 1900 to get a valid year
	 * @return
	 */
	 byte getYearOfLastUpdate();
	 void setYearOfLastUpdate(byte yearOfLastUpdate);
	
}
